Skip to content

fix(feedback_note): parse student heads with a trailing suffix after ** - #21

Merged
agiacalone merged 1 commit into
mainfrom
fix/feedback-note-head-trailing-suffix
Jun 28, 2026
Merged

fix(feedback_note): parse student heads with a trailing suffix after **#21
agiacalone merged 1 commit into
mainfrom
fix/feedback-note-head-trailing-suffix

Conversation

@agiacalone

Copy link
Copy Markdown
Owner

Problem

feedback_note._HEAD anchored on **$, so a per-student head with any content after the closing ** — e.g. an at-a-glance ### Name — **96 / 100** · ACE +14/15 — silently failed to match. The block was skipped and the student vanished from delivery with no error. In the CECS 378 su26 §01 Lab 2 re-grade, the 6 students with an ACE suffix (jbavo, jaz977-7, colin-schulte, d-schulte, VScsulb, mbadberg01) would have been dropped.

Fix

Allow an optional (?:\s.*)? after the closing **. The required **<total> / <grand>** still parses unchanged; a plain head with no suffix is unaffected.

Test

TDD: test_head_with_trailing_suffix_parses (added) fails on the old regex, passes on the new one. Full suite green (388 passed).

🤖 Generated with Claude Code

https://claude.ai/code/session_015cY2osrcunEXb5a8xtTy2V

`_HEAD` anchored on `**$`, so a head like
`### Name — **96 / 100**  ·  ACE +14/15` silently failed to match — the block
was skipped and the student vanished from delivery with no error (6 ACE
students in the su26 §01 Lab 2 re-grade would have been dropped). Allow an
optional `(?:\s.*)?` after the closing `**`; the required `**<total>/<grand>**`
still parses unchanged.

Regression test: test_head_with_trailing_suffix_parses.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015cY2osrcunEXb5a8xtTy2V
@agiacalone
agiacalone merged commit 1fd76e4 into main Jun 28, 2026
4 checks passed
@agiacalone
agiacalone deleted the fix/feedback-note-head-trailing-suffix branch June 28, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant